package com.study;

// 算术运算符 + - * / %
public class OperatorDemo {
    public static void main(String[] args) {
        // 定义整数
        int num = 529;
        int ge = num % 10;
        System.out.println("个位是：" + ge);
        int shi = num /10 % 10;
        System.out.println("十位是：" + shi);
        int bai = num / 100 % 10;
        System.out.println("百位是：" + bai);
    }
}
